<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'StrutsTags.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>

<bean:write name="[Xml中Form-bean段的name属性]" property="[该Form-bean]成员属性"/>
下拉框输出
注:所有html标签(即需在form中显示的),在使用时都需在<html:form/>容器内部
<html:form action="[为处理请求的页面,如´/Hello.do´]" > 
<html:select property="[用于传数据的ActionForm的一个属性,该值作为默认值]" >
<html:options 
name="[Xml中Form-bean段的name属性]" 
property="[将ActionForm的一个属性作为Option的value,该属性为Collection,]" 
labelProperty="[将ActionForm的一个属性作为Option的text,该属性为Collection,]" 
/>
</html:select>
</html:form>
  </body>
</html>
